<{include file="admin/header.html"}>
<{include file="admin/left.html"}>

<form id="postform" name="postform" action="<{$formUrl}>" method="post">
<fieldset><legend><{$tpl_title}></legend>
<div class="input_field">
	<label for="mid">分类: </label>
	<select class="dropdown" name="mid" datatype="*" nullmsg="请选择文章分类！">
        <option value="">请选择文章分类</option>
		<{foreach from=$results item=one}>  
		<option value="<{$one.mid}>"><{$one.fulltitle}></option>
		<{/foreach}>
	</select>
</div>

<div class="input_field">
	<label for="title">标题: </label>
	<input type="text" name="title" class="bigfield" datatype="s2-200" errormsg="文章标题至少2个字符,最多200个字符！"/>
	<span class="form_line"><input name="status" type="checkbox" id="status" value="1" checked="checked" />发布</span>
	<span class="form_line"><input name="recommend" type="checkbox" id="recommend" value="1" />推荐</span>
	<span class="form_line"><input name="comment" type="checkbox" id="comment" value="1" />评论</span>
	<span class="form_line"><input name="ping" type="checkbox" id="ping" value="1" />百度</span>
</div>

<div class="input_field">
	<label for="slug">缩略名: </label>
	<input type="text" name="slug" class="mediumfield" />
	<span class="form_line"> 来源 <input type="text" name="source" class="mediumfield" datatype="s2-18" errormsg="文章来源至少2个字符,最多18个字符！" /></span>
	<span class="form_line"> 浏览 <input type="text" name="hits" class="tinyfield" value="0" /></span>
	<span class="form_line"> 权重 <input type="text" name="sort" class="tinyfield" value="0" /></span>
</div>

<div class="input_field">
	<label for="thumb">缩略图: </label>
	<input type="text" id="thumb" name="thumb" class="bigfield" /><input type="button" id="thumbs" value="选择图片" />
</div>

<div class="input_field">
	<label for="keywords">关键字: </label>
	<input type="text" name="keywords" class="bigfield" />
	<span class="field_desc">多个关键字请用半角,分割，限200字符</span>
</div>

<div class="input_field">
	<label for="overview">描述: </label>
	<textarea name="overview" rows="2" cols="50"></textarea>
	<span class="field_desc">限200字符</span>
</div>

<div class="input_field">
	<label for="url">跳转地址: </label>
	<input type="text" name="url" class="bigfield" />
	<span class="form_line"><input name="jump" type="checkbox" id="jump" value="1" />跳转</span>
</div>

<div class="input_field">
	<label for="text">内容: </label>
	<textarea id="posteditor" name="text" style="width:666px;height:400px;" tip="请输入文章内容。" errormsg="请填写有效文章内容！" nullmsg="请输入文章内容！" datatype="*"></textarea>
</div>

<div class="input_field no_margin_bottom">
	<label for="submit">&nbsp;</label>
	<input type="submit" value="提交" class="submit">
</div>
</fieldset>
</form>
<{include file="admin/footer.html"}>
